export const isH5 = () => {
  const isMobileDevice = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
  const isNarrowScreen = window.innerWidth <= 768;
  return isMobileDevice || isNarrowScreen;
}

export const isWeb = () => !isH5(); 